{layout name="layout" /}

<div class="row">
    <div class="col-xs-12">
        <div class="nav-tabs-custom">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">店铺列表</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <div class="table-responsive">
                        <table id="staff" class="table table-bordered table-stariped ">
                            <thead>
                            <tr>
                                <th>店铺名称</th>
                                <th>店长名称</th>
                                <th>门店描述</th>
                                <th>门店电话</th>
                                <th>门店地址</th>
                                <th>门店简称</th>
                                <th>最后更新IP</th>
                                <th>最后更新时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="storelist" id="data"}
                                <tr>
                                <td>{$data.store_name}</td>
                                <td>{$data.user_name}</td>
                                <td>{$data.store_desc}</td>
                                <td>{$data.store_tel}</td>
                                <td>{$data.store_addr}</td>
                                <td>{$data.store_nameshort}</td>
                                <td>{$data.update_ip}</td>
                                <td>{$data.update_date}</td>
                                <td>
                                {if condition="$data['status'] eq '1'"}
                                         <span class="label label-success status" data-href="{:url('home/stores/change_status',['sid'=>$data['store_id']])}" data-status="0" data-id="{$data['store_id']}">启用</span>
                                        {else /}
                                         <span class="label label-danger status"  data-href="{:url('home/stores/change_status',['sid'=> $data['store_id']])}"  data-status="1" data-id="{$data['store_id']}">停用</span>
                                {/if}
								</td>
								<td>
										<a href="{:url('home/stores/edit',['sid'=> $data['store_id']])}"><i class="fa fa-pencil green control"></i></a>
								</td>
                            </tr>
                            {/volist}
                            </tbody>
                            <!-- tbody是必须的 -->
                        </table>
                        {$storelist->render()}
                    </div>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
    </section>
    <!-- /.content -->
    {include file="public/base" /} {include file="public/edit" /} {include file="public/footer" /}
    </body>
</html>